<?php

$name = $_GET["name"];
$callback = $_GET["callback"]."(";
$callbackEnd = ');';

$file_name = $name.".json";
$myfile = fopen($file_name, "r") or die("Unable to open file!");
$html =  fread($myfile,filesize($file_name));
fclose($myfile);

$html = str_replace(PHP_EOL, '', $html);

echo $callback.$html.$callbackEnd;

?>
